package com.lyl.syt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyl.syt.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Mr.Luo
 * @date 2022-04-24 15:08
 */

public interface DictService extends IService<Dict> {
    /**
     * 根据id获取子节点数据
     * @param id id
     * @return Result
     */
    List<Dict> findChildData(Long id);

    //导出excel
    void exportExcel(HttpServletResponse response);

    //导入excel
    void importExcel(MultipartFile file);

    String getDictName(String dictCode, String value);

    List<Dict> findByDictCode(String dictCode);

    List<Dict> findByParentId(Long parentId);

}
